//
//  CellViewControllerForLabelAndSwitch.h
//  MemoryTasks
//
//  Created by Philippe Bouamriou on 15/05/10.
//  Copyright 2010 Philippe Bouamriou. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "CustomCellViewController.h"

@class CellViewControllerForLabelAndSwitch;

@protocol UICellViewForLabelAndSwitchDelegate <NSObject>

@optional
-(void)cellViewController:(CellViewControllerForLabelAndSwitch*)viewCellController 
       switchStateChanged:(UISwitch*)theSwitch;

@end


@interface CellViewControllerForLabelAndSwitch : CustomCellViewController {
   UILabel *_label;
   UISwitch *_switch;
   NSArray *childViewCells;
   CellViewControllerForLabelAndSwitch *linkedCell;
   id<UICellViewForLabelAndSwitchDelegate> delegate;
   BOOL switchOn;
   NSString *labelText;
}

@property (nonatomic, strong) NSArray *childViewCells;
@property (nonatomic, strong) id<UICellViewForLabelAndSwitchDelegate> delegate;
@property (nonatomic, strong) NSString *labelText;
@property (nonatomic, getter=isSwitchOn) BOOL switchOn;
@property (nonatomic, strong) CellViewControllerForLabelAndSwitch *linkedCell;

@end
